import {
	request,
	UploadFile,
	//BatchUpload,
	DownloadFile,
	BASEURL,
} from '@/api/request.js';

export const baseurl = BASEURL

export const getFormWorkList = (options) => {
	return request({
		url: '/nb-app/1.0.1/FarmNetService/pageFarmWork',
		method: 'POST',
		data: options
	})
}

export const getFarmSeekList = (options) => {
	return request({
		url: '/nb-app/1.0.1/FarmNetService/pageFarmSeek',
		method: 'POST',
		data: options
	})
}

/* export const queryDictDataTree = (options) =>{
	return request({
		url: '/nb-as/1.0.1/DictService/queryDictDataTree',
		method: 'POST',
		data: options
	})
} */

export const addFarmWork = (options) =>{
	return request({
		url: '/nb-app/1.0.1/FarmNetService/addFarmWork',
		method: 'POST',
		data: options
	})
}

export const addFarmSeek = (options) =>{
	return request({
		url: '/nb-app/1.0.1/FarmNetService/addFarmSeek',
		method: 'POST',
		data: options
	})
}

export const previewFile = (options) =>{
	return request({
		url: '/nb-as/1.0.1/FileService/previewFile',
		method: 'GET',
		data: options
	})
}

export const detailFarmWork = (options) =>{
	return request({
		url: '/nb-app/1.0.1/FarmNetService/detailFarmWork',
		method: 'POST',
		data: options
	})
}

export const detailFarmSeek = (options) =>{
	return request({
		url: '/nb-app/1.0.1/FarmNetService/detailFarmSeek',
		method: 'POST',
		data: options
	})
}

export const uploadFile = (options) =>{
	return UploadFile({
		url: '/nb-as/1.0.1/FileService/uploadFile',
		filePath: options
	})
}

export const appQueryAllowancePolicy = (options) => {
	return request({
		url: '/nb-app/1.0.1/AllowancePolicyService/appQueryAllowancePolicy',
		method: 'POST',
		data: options
	})
}

export const appDetailAllowancePolicy = (options) => {
	return request({
		url: '/nb-app/1.0.1/AllowancePolicyService/appDetailAllowancePolicy',
		method: 'POST',
		data: options
	})
}

export const pageAppFarmProduce = (options) => {
	return request({
		url: '/nb-app/1.0.1/FarmProduceService/pageAppFarmProduce',
		method: 'POST',
		data: options
	})
}

export const pageCreditLoan = (options) => {
	return request({
		url: '/nb-app/1.0.1/CreditLoanService/pageCreditLoan',
		method: 'POST',
		data: options
	})
}

export const detailCreditLoan = (options) => {
	return request({
		url: '/nb-app/1.0.1/CreditLoanService/detailCreditLoan',
		method: 'POST',
		data: options
	})
}

export const detailAppFarmProduce = (id) => {
	return request({
		url: '/nb-app/1.0.1/FarmProduceService/getProduceDetail/' + id,
		method: 'GET'
	})
}

export const queryThematicGame = (options) => {
	return request({
		url: '/nb-app/1.0.1/ThematicGameService/queryThematicGame',
		method: 'POST',
		data: options
	})
}

export const queryThematicProduce = (options) => {
	return request({
		url: '/nb-app/1.0.1/ThematicGameService/queryThematicProduce',
		method: 'POST',
		data: options
	})
}

export const appPageKnowledgeExpertList = (options) => {
	return request({
		url: '/nb-app/1.0.1/KnowledgeExpertService/appPageKnowledgeExpertList',
		method: 'POST',
		data: options
	})
}

export const pageKnowledgeCourse = (options) => {
	return request({
		url: '/nb-app/1.0.1/KnowledgeCourseService/pageKnowledgeCourse',
		method: 'POST',
		data: options
	})
}

export const detailKnowledgeCourse = (options) => {
	return request({
		url: '/nb-app/1.0.1/KnowledgeCourseService/detailKnowledgeCourse',
		method: 'POST',
		data: options
	})
}

export const listNewsChannel = (options) => {
	return request({
		url: '/nb-app/1.0.1/NewsInfoService/listNewsChannel',
		method: 'POST',
		data: options
	})
}

export const showNewsChannel = (options) => {
	return request({
		url: '/nb-app/1.0.1/NewsInfoService/showNewsChannel',
		method: 'POST',
		data: options
	})
}

export const appListNewsInfo = (options) => {
	return request({
		url: '/nb-app/1.0.1/NewsInfoService/appListNewsInfo',
		method: 'POST',
		data: options
	})
}

export const queryLocation = (options) => {
	return request({
		url: '/nb-app/1.0.1/LocationService/queryLocation',
		method: 'POST',
		data: options
	})
}

export const queryWeather = (options) => {
	return request({
		url: '/nb-app/1.0.1/WeatherService/queryWeather',
		method: 'POST',
		data: options
	})
}

export const saveNewsChannel = (options) => {
	return request({
		url: '/nb-app/1.0.1/NewsInfoService/saveNewsChannel',
		method: 'POST',
		data: options
	})
}
export const appDetailNewsInfo = (options) => {
	return request({
		url: '/nb-app/1.0.1/NewsInfoService/appDetailNewsInfo',
		method: 'POST',
		data: options
	})
}

export const loginCaptcha = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/loginCaptcha',
		method: 'POST',
		data: options
	})
}

export const sendSmsCaptcha = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/sendSmsCaptcha',
		method: 'POST',
		data: options
	})
}

export const registAccount = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/registAccount',
		method: 'POST',
		data: options
	})
}

export const login = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/login',
		method: 'POST',
		data: options
	})
}

export const queryMyTotalScore = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/queryMyTotalScore',
		method: 'POST',
		data: options
	})
}

export const numberOfCollections = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/numberOfCollections',
		method: 'POST',
		data: options
	})
}

export const pageCourseQueryCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/pageCourseQueryCollection',
		method: 'POST',
		data: options
	})
}

export const pageExpertQueryCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/pageExpertQueryCollection',
		method: 'POST',
		data: options
	})
}

export const pageFarmProduceCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/pageFarmProduceCollection',
		method: 'POST',
		data: options
	})
}

export const pageFarmServiceQueryCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/pageFarmServiceQueryCollection',
		method: 'POST',
		data: options
	})
}

export const countCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/countCollection',
		method: 'POST',
		data: options
	})
}

export const updateCurrentAccount = (options) => {
	return request({
		url: '/nb-app/1.0.1/AccountService/updateCurrentAccount',
		method: 'POST',
		data: options
	})
}

export const resetPassword = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/resetPassword',
		method: 'POST',
		data: options
	})
}

export const addCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/addCollection',
		method: 'POST',
		data: options
	})
}

export const deleteCollection = (options) => {
	return request({
		url: '/nb-app/1.0.1/CollectionService/deleteCollection',
		method: 'POST',
		data: options
	})
}

export const queryLocalResources = (options) => {
	return request({
		url: '/nb-app/1.0.1/list',
		method: 'POST',
		data: options
	})
}

export const queryEngineResources = (options) => {
	return request({
		url: '/nb-app/1.0.1/SearcherService/queryEngineResources',
		method: 'POST',
		data: options
	})
}

export const addSnapshot = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/addSnapshot',
		method: 'POST',
		data: options
	})
}

export const queryMySnapshotList = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/queryMySnapshotList',
		method: 'POST',
		data: options
	})
}

export const appDetailKnowledgeExpert = (options) => {
	return request({
		url: '/nb-app/1.0.1/KnowledgeExpertService/appDetailKnowledgeExpert',
		method: 'POST',
		data: options
	})
}

export const batchUploadFile = (options) => {
	return BatchUpload({
		url: '/nb-as/1.0.1/FileService/batchUploadFile',
		files: options,
		filePath:options[0].uri
	})
}

export const addOpinionInfo = (options) => {
	return request({
		url: '/nb-app/1.0.1/OpinionService/addOpinionInfo',
		method: 'POST',
		data: options
	})
}

export const queryAccountList = (options) => {
	return request({
		url: '/nb-app/1.0.1/OneKeyCallService/queryAccountList',
		method: 'POST',
		data: options
	})
}

export const queryCurrentAccount = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/queryCurrentAccount',
		method: 'POST',
		data: options
	})
}

export const deleteSnapshot = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/deleteSnapshot',
		method: 'POST',
		data: options
	})
}

export const getSearchHotKeys = (options) => {
	return request({
		url: '/nb-app/1.0.1/ConfigService/getSearchHotKeys',
		method: 'GET',
		data: options
	})
}

export const queryHistoryWords = (options) => {
	return request({
		url: '/nb-app/1.0.1/SearcherService/queryHistoryWords',
		method: 'POST',
		data: options
	})
}

export const countSiteMessage = (options) => {
	return request({
		url: '/nb-app/1.0.1/SiteMessageService/countSiteMessage',
		method: 'POST',
		data: options
	})
}

export const queryMySiteMessageList = (options) => {
	return request({
		url: '/nb-app/1.0.1/SiteMessageService/queryMySiteMessageList',
		method: 'POST',
		data: options
	})
}

export const readSiteMessage = (options) => {
	return request({
		url: '/nb-app/1.0.1/SiteMessageService/readSiteMessage',
		method: 'POST',
		data: options
	})
}

export const queryRegionTree = (options) => {
	return request({
		url: '/nb-as/1.0.1/RegionService/queryRegionTree',
		method: 'POST',
		data: options
	})
}

export const queryProduceCategoryTree = (options) => {
	return request({
		url: '/nb-app/1.0.1/ProduceCategoryService/queryProduceCategoryTree',
		method: 'POST',
		data: options
	})
}

export const queryFarmMarketList = (options) => {
	return request({
		url: '/nb-app/1.0.1/FarmMarketService/queryFarmMarketList',
		method: 'POST',
		data: options
	})
}

export const queryProducePriceList = (options) => {
	return request({
		url: '/nb-app/1.0.1/ProducePriceService/queryProducePriceList',
		method: 'POST',
		data: options
	})
}

export const logout = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/logout',
		method: 'POST',
		data: options
	})
}

export const queryAppAdList = (options) => {
	return request({
		url: '/nb-app/1.0.1/AdAreaService/queryAppAdList',
		method: 'POST',
		data: options
	})
}

export const allResourceTab = (options) => {
	return request({
		url: '/nb-app/1.0.1/SearcherService/allResourceTab',
		method: 'POST',
		data: options
	})
}

export const querySystemConfig = (options) => {
	return request({
		url: '/nb-as/1.0.1/ConfigService/querySystemConfig',
		method: 'POST',
		data: options
	})
}

export const clearHistoryWords = (options) => {
	return request({
		url: '/nb-app/1.0.1/SearcherService/clearHistoryWords',
		method: 'POST',
		data: options
	})
}

export const queryLatestAppVersion = (options) => {
	return request({
		url: '/nb-app/1.0.1/AppVersionService/queryLatestAppVersion',
		method: 'POST',
		data: options
	})
}

export const querySnapshotDetail = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/querySnapshotDetail',
		method: 'POST',
		data: options
	})
}

export const queryDictDataTree = (options) => {
	return request({
		url: '/nb-app/1.0.1/DictService/queryDictDataTree',
		method: 'POST',
		data: options
	})
}

export const updateSnapshot = (options) => {
	return request({
		url: '/nb-app/1.0.1/SnapshotService/updateSnapshot',
		method: 'POST',
		data: options
	})
}
export const exchangePassword = (options) => {
	return request({
		url: '/nb-as/1.0.1/AccountService/resetPassword',
		method: 'POST',
		data: options
	})
}

export const forwordOutside = (options) => {
	return request({
		url: '/nb-app/1.0.1/AdAreaService/forwordOutside',
		method: 'GET',
		data: options
	})
}

export const weChatLogin = (options) => {
	return request({
		url: '/nb-app/1.0.1/LoginService/weChatLogin',
		method: 'POST',
		data: options
	})
}

export const redirect = (options) => {
	return request({
		url: '/nb-as/1.0.1/SsoService/redirect',
		method: 'GET',
		data: options
	})
}

export const getToken = (options) => {
	return request({
		url: '/nb-as/1.0.1/SsoService/getToken',
		method: 'POST',
		data: options
	})
}
